package com.yuyu.demo.spring4.autowire;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.yuyu.demo.spring4.beans.Person;

public class TestForAutowire {
	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("appAutowire.xml");
		Person person = (Person)applicationContext.getBean("person3");
		System.out.println(person.toString());
	}
}
